<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="../common/Top.jsp"%>
<div id="BackLink">
	<a href="index.jsp">返回主页面>></a>
</div>
<div id="Catalog">
	<table id="searchTable">
		<tr>
			<th>商品编号</th>
			<th>商品名</th>
			<th>图片链接</th>
		</tr>
		<c:if test="${fn:length(requestScope.productList) == 0}">
			<tr>
				<td colspan="3">未找到相关宠物</td>
			</tr>
		</c:if>
		<c:forEach items="${requestScope.productList}" var="product">
			<tr>
				<td>${product.productId}</td>
				<td>${product.breed}</td>
				<td>${product.imageSrc}</td>
			</tr>
		</c:forEach>
	</table>
</div>
<%@ include file="../common/Bottom.jsp"%>